package cn.wolfcode.service;

import cn.wolfcode.domain.Department;
import cn.wolfcode.domain.Employee;
import cn.wolfcode.qo.EmployeeQueryObject;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDepartmentService {


    /**
     * 添加数据
     * @param department
     */
    void save(Department department);

    /**
     * 删除数据
     * @param id
     */
    void delete(Long id);


    /**
     * 修改数据 - 跟添加的区别在于修改的department对象里必须包含id
     * @param department
     */
    void update(Department department);

    /**
     * 查询单条数据
     * @param id 需要查询的id
     * @return
     */
    Department get(Long id);

    /**
     * 所有数据查询 需要查询的所有数据
     * @return
     */
    List<Department> listAll();

    PageInfo<Department> query(QueryObject qo);


}
